#ifndef FightSucceedScene_h__
#define FightSucceedScene_h__

#include "Global.h"




#include "../item/Item.h"
#include "../EquipIcon.h"
#include "../EquipDetail.h"

class FightSucceedScene
	: public State
	, public cocos2d::extension::CCBMemberVariableAssigner
	, public cocos2d::extension::CCBSelectorResolver
	, public cocos2d::extension::CCNodeLoaderListener
{
public:
	CCB_STATIC_NEW_AUTORELEASE_OBJECT_WITH_INIT_METHOD(FightSucceedScene, create);
	FightSucceedScene();
	~FightSucceedScene();

	virtual SEL_MenuHandler onResolveCCBCCMenuItemSelector(CCObject * pTarget, CCString * pSelectorName){return NULL;}
	virtual SEL_CCControlHandler onResolveCCBCCControlSelector(CCObject * pTarget, CCString * pSelectorName);
	virtual bool onAssignCCBMemberVariable(CCObject * pTarget, CCString * pMemberVariableName, CCNode * pNode);
	virtual void onNodeLoaded(CCNode * pNode, CCNodeLoader * pNodeLoader);

	bool init();
	void onEnter();
	void onExit();
	void refresh();

protected:
	
private:
	CCControlButton* mSellBtn;
	CCControlButton* mMeltBtn;
	CCLabelTTF* mGold;
	CCLabelTTF* mExp;
	EquipDetail* mEquipDetail;
	void onReturnBtnClick(CCObject * pSender, CCControlEvent pCCControlEvent);
	void onSellBtnClick(CCObject * pSender, CCControlEvent pCCControlEvent);
	void onMeltBtnClick(CCObject * pSender, CCControlEvent pCCControlEvent);
	void onClearBtnClick(CCObject * pSender, CCControlEvent pCCControlEvent);
};
#endif // FightSucceedScene_h__
